
<%@ page import="edu.uow.devdocs.Project" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'project.label', default: 'Project')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<div id="show-project" class="content scaffold-show" role="main">
			<h1 id="project_show"><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:flashMessage/>
			<table class="property-list project faqs wp100">
				<colgroup>
					<col class="faqs">
				</colgroup>
				<g:if test="${projectInstance?.name}">
				<tr class="fieldcontain">
					<th id="name-label" class="property-label"><g:message code="project.name.label" default="Name" /></th>
					
						<td class="property-value" aria-labelledby="name-label"><g:fieldValue bean="${projectInstance}" field="name"/></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.lastUpdated}">
				<tr class="fieldcontain">
					<th id="lastUpdated-label" class="property-label"><g:message code="project.lastUpdated.label" default="Last Updated" /></th>
					
						<td class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate format="dd/MM/yyyy" date="${projectInstance?.lastUpdated}" /></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.startDate}">
				<tr class="fieldcontain">
					<th id="startDate-label" class="property-label"><g:message code="project.startDate.label" default="Start Date" /></th>
					
						<td class="property-value" aria-labelledby="startDate-label"><g:formatDate format="dd/MM/yyyy" date="${projectInstance?.startDate}" /></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.endDate}">
				<tr class="fieldcontain">
					<th id="endDate-label" class="property-label"><g:message code="project.endDate.label" default="End Date" /></th>
					
						<td class="property-value" aria-labelledby="endDate-label"><g:formatDate format="dd/MM/yyyy" date="${projectInstance?.endDate}" /></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.status}">
				<tr class="fieldcontain">
					<th id="status-label" class="property-label"><g:message code="project.status.label" default="Status" /></th>
					
						<td class="property-value" aria-labelledby="status-label"><g:link controller="projectStatus" action="show" id="${projectInstance?.status?.id}">${projectInstance?.status?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.estimatedHours}">
				<tr class="fieldcontain">
					<th id="estimatedHours-label" class="property-label"><g:message code="project.estimatedHours.label" default="Estimated Hours" /></th>
					
						<td class="property-value" aria-labelledby="estimatedHours-label"><g:fieldValue bean="${projectInstance}" field="estimatedHours"/></td>
					
				</tr>
				</g:if>

			
				<g:if test="${projectInstance?.availableToAllFlag}">
				<tr class="fieldcontain">
					<th id="availableToAllFlag-label" class="property-label"><g:message code="project.availableToAllFlag.label" default="Available To All Flag" /></th>
					
						<td class="property-value" aria-labelledby="availableToAllFlag-label"><g:formatBoolean boolean="${projectInstance?.availableToAllFlag}" /></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.projectType}">
				<tr class="fieldcontain">
					<th id="projectType-label" class="property-label"><g:message code="project.projectType.label" default="Project Type" /></th>
					
						<td class="property-value" aria-labelledby="projectType-label"><g:link controller="projectType" action="show" id="${projectInstance?.projectType?.id}">${projectInstance?.projectType?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.costCentre}">
				<tr class="fieldcontain">
					<th id="costCentre-label" class="property-label"><g:message code="project.costCentre.label" default="Cost Centre" /></th>
					
						<td class="property-value" aria-labelledby="costCentre-label"><g:fieldValue bean="${projectInstance}" field="costCentre"/></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.estimatedPercentComplete}">
				<tr class="fieldcontain">
					<th id="estimatedPercentComplete-label" class="property-label"><g:message code="project.estimatedPercentComplete.label" default="Estimated Percent Complete" /></th>
					
						<td class="property-value" aria-labelledby="estimatedPercentComplete-label"><g:fieldValue bean="${projectInstance}" field="estimatedPercentComplete"/></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.businessOwner}">
				<tr class="fieldcontain">
					<th id="businessOwner-label" class="property-label"><g:message code="project.businessOwner.label" default="Business Owner" /></th>
					
						<td class="property-value" aria-labelledby="businessOwner-label"><g:link controller="person" action="__show" id="${projectInstance?.businessOwner?.id}">${projectInstance?.businessOwner?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.commentHistory}">
				<tr class="fieldcontain">
					<th id="commentHistory-label" class="property-label"><g:message code="project.commentHistory.label" default="Comment History" /></th>
					
						<g:each in="${projectInstance.commentHistory}" var="c">
						<td class="property-value" aria-labelledby="commentHistory-label"><g:link controller="commentHistory" action="show" id="${c.id}">${c?.encodeAsHTML()}</g:link></td>
						</g:each>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.developmentManager}">
				<tr class="fieldcontain">
					<th id="developmentManager-label" class="property-label"><g:message code="project.developmentManager.label" default="Development Manager" /></th>
					
						<td class="property-value" aria-labelledby="developmentManager-label"><g:link controller="person" action="__show" id="${projectInstance?.developmentManager?.id}">${projectInstance?.developmentManager?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.flagBillable}">
				<tr class="fieldcontain">
					<th id="flagBillable-label" class="property-label"><g:message code="project.flagBillable.label" default="Flag Billable" /></th>
					
						<td class="property-value" aria-labelledby="flagBillable-label"><g:formatBoolean boolean="${projectInstance?.flagBillable}" /></td>
					
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.persons}">
				<tr class="fieldcontain">
					<th id="persons-label" class="property-label"><g:message code="project.persons.label" default="Persons" /></th>
					<td>
						<ul>
						<g:each in="${projectInstance.persons}" var="p">
						<li class="property-value" aria-labelledby="persons-label"><g:link controller="person" action="__show" id="${p.id}">${p?.encodeAsHTML()}</g:link></li>
						</g:each>
						</ul>
					</td>
				</tr>
				</g:if>
			
				<g:if test="${projectInstance?.system}">
				<tr class="fieldcontain">
					<th id="system-label" class="property-label"><g:message code="project.system.label" default="System" /></th>
					
						<td class="property-value" aria-labelledby="system-label"><g:link controller="system" action="show" id="${projectInstance?.system?.id}">${projectInstance?.system?.encodeAsHTML()}</g:link></td>
					
				</tr>
				</g:if>
			
			</table>
			<g:form class="columns">
				<fieldset class="form-actions">
					<g:hiddenField name="id" value="${projectInstance?.id}" />
					<g:link class="edit button" action="edit" id="${projectInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
